home *** CD-ROM | disk | FTP | other *** search
/ PC Graphics Unleashed / PC Graphics Unleashed.iso / ch17 / pi / venus / venus.pi < prev   
Encoding:
Text File  |  1994-08-05  |  1.4 KB  |  60 lines

  1. // Polyray scene file: VENUS.PI
  2. // by Rob McGregor
  3.  
  4. // Rotating Venus de Milo
  5.  
  6. include "..\..\..\colors.inc"
  7. include "..\..\..\stones.inc"
  8. include "venus.inc"
  9.  
  10. // SET UP THE CAMERA
  11. viewpoint {
  12.   from       <1.5, 2, -16 >
  13.   at         <0, 0.75, 0 >
  14.   up         <0, 1, 0 >
  15.   angle      45
  16.   resolution 320, 200
  17.   aspect     1.6
  18. }
  19.  
  20. background midnight_blue
  21.  
  22. light <-5, 30, -100>
  23. light <5, 30, -100>
  24.  
  25. start_frame   0
  26. end_frame     71
  27. total_frames  72
  28. outfile       "venus"
  29.  
  30. define ang 360 / total_frames * frame
  31.  
  32. /*************************************************************************
  33.   // if you have a nice photographic marble texture to use as an image map 
  34.   // then uncomment the following and declare it in here...
  35.  
  36. static define real_marble
  37. texture {
  38.   special surface {
  39.     color cylindrical_imagemap(image("my_image.tga"), P, 10)
  40.     ambient 0.1
  41.     diffuse 0.6
  42.     specular white, 0.6
  43.     microfacet Phong 7
  44.   }
  45. }
  46. **************************************************************************/
  47.  
  48. object { 
  49.   venus 
  50.   rotate <-90, ang, 0>  // use this one to animate...
  51.   rotate <-90, 180, 0>  // use this one for still shot...
  52.   
  53.   // Un-comment the following line for use with an image map...
  54.   // real_marble 
  55.  
  56.   // Or use the following line as a substitute marble texture instead... 
  57.   Stone4 { scale <2, 2, 2> }
  58. }
  59.  
  60.